<?php

namespace catchAdmin\permissions\model\search;

trait ProfessionalSearch
{
    public function searchNameAttr($query, $value, $data)
    {
        return $query->whereLike('name', $value);
    }
}